<section class="content-header">
    <h1>

    </h1>
</section>
<section class="content">
    <div class="row">
        <div class="box-tools" style="margin-left: 15px">
            <div class=" input-group input-group-sm " style="width: 150px; ">
                <a href="{:url( '/Index/system/learn/add')} " class="btn btn-block btn-info " data-toggle="modal" data-target="#base_learn_modal">添加知识库文件</a>
            </div>
        </div>

        <div class="col-xs-3 ">
            <div class="box box-solid ">
                <div class="box-header with-border ">
                    <h3 class="box-title ">文档类型</h3>
                </div>
                <div class="box-body no-padding ">
                    <ul class="nav nav-pills nav-stacked ">
                        <!--active-->
                        {volist name="file_type " id="vo " key="key "}
                        <li class="{$type==$vo.m_value?'active':''}">
                            <a data-url="{:url('/index/system/learn/index',['type'=>$vo.m_value])}" href="javascript:;" onclick="reload_tab(this)">
                                <i class="fa fa-file-text-o  "></i> {$vo.m_name}
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <!-- /.box-body -->
            </div>
        </div>
        <div class="col-xs-9 ">

            <div class="box ">

                <div class="box-header ">
                    <h3 class="box-title ">项目文件列表</h3>

                    <div class="box-tools ">

                    </div>
                </div>
                <!-- /.box-header -->

                <div class="box-body table-responsive no-padding ">

                    <table class="table table-hover ">
                        <thead>
                            <tr>
                                <th>标号</th>

                                <th>类型</th>



                                <th>上传用户</th>

                                <th>文件名称</th>


                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="data_list " id="vo " key="key "}
                            <tr>
                                <td>{$key}</td>


                                <td>{$file_type_item[$vo.mtype]?=$file_type_item[$vo.mtype]}</td>

                                <td>{$vo.uid}</td>
                                <td>{$vo.file_name}</td>



                                <td>
                                    <a href="javascript:; " data-url="{:url( '/Index/system/learn/del')} " param="{$vo.id} " class="btn label-danger data_del_items ">删除</a>



                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>

                    <div class="col-sm-7">
                        {$page}

                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</section>
<div class="modal " id="base_learn_modal">
    <div class="modal-dialog ">
        <div class="modal-content "></div>
    </div>
</div>
<script src="/public/admin/js/common.js"></script>